<?php 
echo "yalla".$_POST['DeleteP'];
if($_POST['DeleteP'] == 'DeleteP') {
	header("Location: deleteParticipant.php"); 
}

$con= mysql_connect("localhost","root","");

if(!$con){
die('Connection Error!:' . mysql_error());
}
mysql_select_db ("usabilityevaluation",$con);

$idP=$_POST['idParticipant'];

	
$query1="update Participant set FirstName='$firstName', LastName='$lastName', isMale='$sexe', isRightHanded='$rightHanded', Comment='$comment' wehere id_participant='$idP'";
mysql_query($query1) or die('Error, modify query failed');

header("Location: ListParticipants.php"); 

mysql_close($con);
?>



